#include <iostream>
using namespace std;

signed main()
{
    int a,d;
    cin>>a>>d;
    string s1 = to_string(a);
    string s2 = s1.substr(s1.size()-d,d);
    s1.erase(s1.size()-d,d);
    int t = stoi(s2+s1);
    printf("%.2f",t*1.0/a);
    return 0;
}
